import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { WsGateway } from './ws/ws.gateway';
import { MessageService } from '../message/message.service';
import { PrismaService } from '../prisma/prisma.service';
import { AIModule } from '../ai/ai.module';

@Module({
  imports: [
    JwtModule.register({
      secret: process.env.JWT_SECRET || 'your-secret-key',
      signOptions: { expiresIn: '1h' },
    }),
    AIModule,
  ],
  providers: [WsGateway, MessageService, PrismaService],
  exports: [WsGateway],
})
export class WsModule {}
